<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{relationsmsgs['navigation.back']}" action="/jsf/relations/viewRelations.xhtml"/>
		
			<p:panel header="#{relationsmsgs['relationstiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{relationsmsgs['relationstiers.rlttiersparent.title']}:" />
							<h:outputText value="#{RelationsComponent.relationstierses.rltTiersParent}"/>
					<h:outputText value="#{relationsmsgs['relationstiers.rlttiersfils.title']}:" />
							<h:outputText value="#{RelationsComponent.relationstierses.rltTiersFils}"/>
					<h:outputText value="#{relationsmsgs['relationstiers.rltrelation.title']}:" />
							<h:outputText value="#{RelationsComponent.relationstierses.rltRelation}"/>
					<h:outputText value="#{relationsmsgs['relationstiers.rltsens.title']}:" />
							<h:outputText value="#{RelationsComponent.relationstierses.rltSens}"/>
					<h:outputText value="#{relationsmsgs['relationstiers.rltdatedebut.title']}:" />
							<h:outputText value="#{RelationsComponent.relationstierses.rltDateDebut}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{relationsmsgs['relationstiers.rltdatefin.title']}:" />
							<h:outputText value="#{RelationsComponent.relationstierses.rltDateFin}"  converter="dateConverterForCalendar" />
         			<h:panelGroup>
         				<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{relationsmsgs['navigation.delete']}" action="#{RelationsComponent.deleteRelationsRelationsTierses(RelationsComponent.relations.relRelation, RelationsComponent.relationstierses.rltTiersParent, RelationsComponent.relationstierses.rltTiersFils, RelationsComponent.relationstierses.rltRelation)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>